Skip to content

fix(deploy): rewrite base href per example so assets resolve to correct subpath#37

Merged
blove merged 1 commit into
mainfrom
claude/blissful-bartik
Apr 6, 2026
Merged

fix(deploy): rewrite base href per example so assets resolve to correct subpath#37
blove merged 1 commit into
mainfrom
claude/blissful-bartik

Conversation

@blove
Copy link
Copy Markdown
Contributor

@blove blove commented Apr 6, 2026

Summary

Production Angular examples at examples.stream-resource.dev are completely broken — all 14 show dark/blank screens because asset files (main.js, styles.css, chunks) return 404.

Root cause: All index.html files have <base href="/"> which resolves asset URLs to the domain root (/main.js) instead of the correct subpath (/langgraph/streaming/main.js).

Fix: assemble-examples.ts now rewrites <base href="/"> to <base href="/{product}/{topic}/"> for each example after copying build output.

Evidence

  • Navigated to https://examples.stream-resource.dev/langgraph/streaming in Chrome
  • main.js → HTTP 404
  • styles.css → HTTP 404
  • chunk-C6Q5SG76.js → HTTP 404
  • Angular bootstrap fails silently — dark screen, no errors

Test plan

  • Chat library tests pass
  • Verify fix deploys correctly (CI deploy step)
  • Verify all 14 examples load in production after deploy

…ct subpath

Production Angular examples at examples.stream-resource.dev returned 404 for
main.js, styles.css, and chunks. Root cause: all index.html files had
<base href="/"> so asset URLs resolved to the domain root instead of
/{product}/{topic}/. Fix: assemble script now rewrites base href to the
correct subpath for each example.
@blove blove merged commit 686f6a0 into main Apr 6, 2026
12 of 13 checks passed
blove added a commit that referenced this pull request Apr 7, 2026
…ct subpath (#37)

Production Angular examples at examples.stream-resource.dev returned 404 for
main.js, styles.css, and chunks. Root cause: all index.html files had
<base href="/"> so asset URLs resolved to the domain root instead of
/{product}/{topic}/. Fix: assemble script now rewrites base href to the
correct subpath for each example.
blove added a commit that referenced this pull request Apr 7, 2026
…ct subpath (#37)

Production Angular examples at examples.stream-resource.dev returned 404 for
main.js, styles.css, and chunks. Root cause: all index.html files had
<base href="/"> so asset URLs resolved to the domain root instead of
/{product}/{topic}/. Fix: assemble script now rewrites base href to the
correct subpath for each example.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant